package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.RoleDao;
import com.oscarmovie.model.Role;

public class RoleServiceImpl implements RoleService{
	private RoleDao roleDao;

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	public RoleDao getRoleDao() {
		return roleDao;
	}

	
	public void save(Role role) {
		roleDao.save(role);
	}

	
	public Role load(int id) {
		Role role =  roleDao.load(id);
		return role;
	}

	
	public List<Role> loadAll() {
		return roleDao.loadAll();
	}
}
